//package com.mask.sca.auth.config;
//
//import com.mask.sca.auth.security.TenantFilter;
//import org.springframework.boot.web.servlet.FilterRegistrationBean;
//import org.springframework.context.annotation.Bean;
//import org.springframework.context.annotation.Configuration;
//
//@Configuration
//public class FilterConfig {
//
//    @Bean
//    public FilterRegistrationBean<TenantFilter> tenantFilterRegistration(TenantFilter tenantFilter) {
//        FilterRegistrationBean<TenantFilter> registration = new FilterRegistrationBean<>();
//        registration.setFilter(tenantFilter);
//        registration.addUrlPatterns("/*");
//        registration.setOrder(1);
//        return registration;
//    }
//
//    @Bean
//    public TenantFilter tenantFilter() {
//        return new TenantFilter();
//    }
//}